﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014DD RID: 5341
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UpgradeAreaStatCsReq : IMessage<UpgradeAreaStatCsReq>, IMessage, IEquatable<UpgradeAreaStatCsReq>, IDeepCloneable<UpgradeAreaStatCsReq>, IBufferMessage
	{
		// Token: 0x1700433A RID: 17210
		// (get) Token: 0x0600EEDC RID: 61148 RVA: 0x0027DD41 File Offset: 0x0027BF41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UpgradeAreaStatCsReq> Parser
		{
			get
			{
				return UpgradeAreaStatCsReq._parser;
			}
		}

		// Token: 0x1700433B RID: 17211
		// (get) Token: 0x0600EEDD RID: 61149 RVA: 0x0027DD48 File Offset: 0x0027BF48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UpgradeAreaStatCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700433C RID: 17212
		// (get) Token: 0x0600EEDE RID: 61150 RVA: 0x0027DD5A File Offset: 0x0027BF5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UpgradeAreaStatCsReq.Descriptor;
			}
		}

		// Token: 0x0600EEDF RID: 61151 RVA: 0x0027DD61 File Offset: 0x0027BF61
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpgradeAreaStatCsReq()
		{
		}

		// Token: 0x0600EEE0 RID: 61152 RVA: 0x0027DD69 File Offset: 0x0027BF69
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpgradeAreaStatCsReq(UpgradeAreaStatCsReq other) : this()
		{
			this.areaId_ = other.areaId_;
			this.level_ = other.level_;
			this.iHLDLJGDCBL_ = other.iHLDLJGDCBL_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EEE1 RID: 61153 RVA: 0x0027DDA6 File Offset: 0x0027BFA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpgradeAreaStatCsReq Clone()
		{
			return new UpgradeAreaStatCsReq(this);
		}

		// Token: 0x1700433D RID: 17213
		// (get) Token: 0x0600EEE2 RID: 61154 RVA: 0x0027DDAE File Offset: 0x0027BFAE
		// (set) Token: 0x0600EEE3 RID: 61155 RVA: 0x0027DDB6 File Offset: 0x0027BFB6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x1700433E RID: 17214
		// (get) Token: 0x0600EEE4 RID: 61156 RVA: 0x0027DDBF File Offset: 0x0027BFBF
		// (set) Token: 0x0600EEE5 RID: 61157 RVA: 0x0027DDC7 File Offset: 0x0027BFC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x1700433F RID: 17215
		// (get) Token: 0x0600EEE6 RID: 61158 RVA: 0x0027DDD0 File Offset: 0x0027BFD0
		// (set) Token: 0x0600EEE7 RID: 61159 RVA: 0x0027DDD8 File Offset: 0x0027BFD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StatType IHLDLJGDCBL
		{
			get
			{
				return this.iHLDLJGDCBL_;
			}
			set
			{
				this.iHLDLJGDCBL_ = value;
			}
		}

		// Token: 0x0600EEE8 RID: 61160 RVA: 0x0027DDE1 File Offset: 0x0027BFE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UpgradeAreaStatCsReq);
		}

		// Token: 0x0600EEE9 RID: 61161 RVA: 0x0027DDF0 File Offset: 0x0027BFF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UpgradeAreaStatCsReq other)
		{
			return other != null && (other == this || (this.AreaId == other.AreaId && this.Level == other.Level && this.IHLDLJGDCBL == other.IHLDLJGDCBL && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EEEA RID: 61162 RVA: 0x0027DE4C File Offset: 0x0027C04C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.IHLDLJGDCBL != StatType.None)
			{
				num ^= this.IHLDLJGDCBL.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EEEB RID: 61163 RVA: 0x0027DEC3 File Offset: 0x0027C0C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EEEC RID: 61164 RVA: 0x0027DECB File Offset: 0x0027C0CB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EEED RID: 61165 RVA: 0x0027DED4 File Offset: 0x0027C0D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Level);
			}
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.AreaId);
			}
			if (this.IHLDLJGDCBL != StatType.None)
			{
				output.WriteRawTag(120);
				output.WriteEnum((int)this.IHLDLJGDCBL);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EEEE RID: 61166 RVA: 0x0027DF4C File Offset: 0x0027C14C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.IHLDLJGDCBL != StatType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.IHLDLJGDCBL);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EEEF RID: 61167 RVA: 0x0027DFBC File Offset: 0x0027C1BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UpgradeAreaStatCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.IHLDLJGDCBL != StatType.None)
			{
				this.IHLDLJGDCBL = other.IHLDLJGDCBL;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EEF0 RID: 61168 RVA: 0x0027E020 File Offset: 0x0027C220
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EEF1 RID: 61169 RVA: 0x0027E02C File Offset: 0x0027C22C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 48U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.IHLDLJGDCBL = (StatType)input.ReadEnum();
						}
					}
					else
					{
						this.AreaId = input.ReadUInt32();
					}
				}
				else
				{
					this.Level = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005E60 RID: 24160
		private static readonly MessageParser<UpgradeAreaStatCsReq> _parser = new MessageParser<UpgradeAreaStatCsReq>(() => new UpgradeAreaStatCsReq());

		// Token: 0x04005E61 RID: 24161
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005E62 RID: 24162
		public const int AreaIdFieldNumber = 6;

		// Token: 0x04005E63 RID: 24163
		private uint areaId_;

		// Token: 0x04005E64 RID: 24164
		public const int LevelFieldNumber = 2;

		// Token: 0x04005E65 RID: 24165
		private uint level_;

		// Token: 0x04005E66 RID: 24166
		public const int IHLDLJGDCBLFieldNumber = 15;

		// Token: 0x04005E67 RID: 24167
		private StatType iHLDLJGDCBL_;
	}
}
